//
//  PublishingView.m
//  夺宝吧
//
//  Created by xiaocai on 15/7/1.
//  Copyright (c) 2015年 FangYuan. All rights reserved.
//

#import "PublishingView.h"
#import "WYPublicWeb.h"
//计算详细
#define JSXX_URL @"/api/ApiGoods/getGameRulesDetail&id="
@interface PublishingView ()
{
    __weak IBOutlet UILabel *jxzLab;
    __weak IBOutlet UILabel *titleLab;
    __weak IBOutlet UIView *bgView;
    __weak IBOutlet UIButton *jsBtn;
    __weak IBOutlet UILabel *lab;
}
@end
@implementation PublishingView

- (void)awakeFromNib
{
    jxzLab.textColor = QBB_RED_COLOR;
    jxzLab.layer.borderWidth = 0.5;
    jxzLab.layer.borderColor = QBB_RED_COLOR.CGColor;
    jxzLab.layer.masksToBounds = YES;
    jxzLab.layer.cornerRadius = 2;
    bgView.layer.cornerRadius = 2;
    bgView.layer.masksToBounds = YES;
    bgView.backgroundColor = QBB_RED_COLOR;
    jsBtn.layer.cornerRadius = 2;
    jsBtn.layer.masksToBounds = YES;
    jsBtn.layer.borderColor = [UIColor whiteColor].CGColor;
    jsBtn.layer.borderWidth = 1;
}

//填充view数据的方法
- (void)fillViewWithDic:(NSDictionary *)dic
{
    titleLab.text = [NSString stringWithFormat:@"(第%@期)%@",dic[@"goods"][@"qishu"],dic[@"goods"][@"title"]];
   
}

@end
